import { lazy } from "react";

const Layout=lazy(()=>import("../pages/Layout"))
const Home=lazy(()=>import("../pages/Home"))
const List=lazy(()=>import("../pages/List"))
const User=lazy(()=>import("../pages/User"))

export const handleHomes=[
    {
        path:"/",
        element:<Home></Home>,
        title:"首页"
    },
    {
        path:"/list",
        element:<List></List>,
        title:"列表"
    },
    {
        path:"/user",
        element:<User></User>,
        title:"个人中心"
    }
]

export const routes=[
    {
        path:'/',
        element:<Layout></Layout>,
        children:handleHomes
    }
]